<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        //声明对象简写
        let name = 'zyw'
        let age = 22

        //以前
        //let person = {name: name,age: age}
        //属性名和变量名 同名可缩写
        let person = {name,age}
        console.log(person)
    </script>
</head>
<body>

</body>
</html>